﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PreeRegisterModel
{
    public class WorkGetRequestBodyModel
    {
        /// <summary>
        /// 医师ID
        /// </summary>
        public string docid { get; set; }
        /// <summary>
        /// 科室ID
        /// </summary>
        public string deptid { get; set; }
        /// <summary>
        /// 预约来源
        /// </summary>
        public string preetype { get; set; }
    }

    public class WorkGetResponseBodyModel
    {
        /// <summary>
        /// 排班
        /// </summary>
        public List<WorkGetRespModel> works { get; set; }
    }

    public class WorkGetRespModel
    {
        /// <summary>
        /// 门诊排班标识
        /// </summary>
        public string wid { get; set; }
        /// <summary>
        /// 出诊日期 (格式：yyyy-MM-dd)
        /// </summary>
        public string date { get; set; }
        /// <summary>
        /// 最大预约数(平台最大可预约数)
        /// </summary>
        public string mcount { get; set; }
        /// <summary>
        /// 总数（医院总的放号量，包括门诊的放号量）
        /// </summary>
        public string tcount { get; set; }
        /// <summary>
        /// 剩余可预约数
        /// </summary>
        public string acount { get; set; }
        /// <summary>
        /// 时间段代码
        /// </summary>
        public string pcode { get; set; }
        /// <summary>
        /// 开始时间 （格式：HH:mm）
        /// </summary>
        public string stime { get; set; }
        /// <summary>
        /// 结束时间 （格式：HH:mm）
        /// </summary>
        public string etime { get; set; }
        /// <summary>
        /// 挂号类别ID
        /// </summary>
        public string rankid { get; set; }
        /// <summary>
        /// 挂号类别名称
        /// </summary>
        public string wrank { get; set; }
        /// <summary>
        /// 挂号价格
        /// </summary>
        public string price { get; set; }
        /// <summary>
        /// 诊疗费用
        /// </summary>
        public string ofee { get; set; }
        /// <summary>
        /// 加收费用
        /// </summary>
        public string addrate { get; set; }
        /// <summary>
        /// 就诊地点
        /// </summary>
        public string addr { get; set; }
        /// <summary>
        /// 是否预约排班
        /// </summary>
        public string preeflag { get; set; }
        /// <summary>
        /// 医生姓名
        /// </summary>
        public string doctorname { get; set; }
        /// <summary>
        /// 医生姓名
        /// </summary>
        public string doctorid { get; set; }
        /// <summary>
        /// 号源信息
        /// </summary>
        public List<WorkGetDetail> no { get; set; }
    }

    /// <summary>
    /// 号源类
    /// </summary>
    public class WorkGetDetail
    {
        /// <summary>
        /// 号源序号
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 挂号序号
        /// </summary>
        public string inum { get; set; }
        /// <summary>
        /// 预约时间段(格式:HH:mm-HH:mm)
        /// </summary>
        public string time { get; set; }
        /// <summary>
        /// 预约状态 0 未预约  1 已预约
        /// </summary>
        public string state { get; set; }
        /// <summary>
        /// 排班ID
        /// </summary>
        public string wid { get; set; }
    }


    public class WorkSourceRequestModel
    {
        /// <summary>
        /// 排班ID
        /// </summary>
        public string wid { get; set; }
        /// <summary>
        /// 医生ID
        /// </summary>
        public string doctorid { get; set; }
        /// <summary>
        /// 就诊时间
        /// </summary>
        public string date { get; set; }
        /// <summary>
        /// 就诊时段
        /// </summary>
        public string time { get; set; }
    }

    public class WorkSourceResponseModel
    {
        /// <summary>
        /// 号源信息
        /// </summary>
        public List<WorkGetDetail> no { get; set; }
    }
}
